﻿using System.Runtime.InteropServices;

namespace LockAndLaunch
{
    internal class WorkstationLocker
    {
        [DllImport("user32.dll", SetLastError = true)]
        private static extern bool LockWorkStation();

        public void Lock()
        {
            LockWorkStation();
        }
    }
}